package com.studerb.view.connectionPool;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.studerb.service.EventService;
import com.studerb.service.interfaces.IServerService;

public class ConnectionPoolPane extends JPanel implements ActionListener {
    protected Logger logger = Logger.getLogger(ConnectionPoolPane.class);
    @Autowired IServerService serverService;
    @Autowired ConnectionPoolTable connectionPoolTable;
    @Autowired EventService eventService;
    JScrollPane scrollPane;


    public void init() {
        logger.debug("Initializing ConnectionPoolPane");
        this.setLayout(new BorderLayout());
        scrollPane = new JScrollPane();
        connectionPoolTable.setFillsViewportHeight(true);
        scrollPane.setViewportView(connectionPoolTable);
        add(scrollPane, BorderLayout.CENTER);
    }


    @Override public void actionPerformed(ActionEvent e) {
        // TODO Auto-generated method stub
        
    }
}